package cn.db101.api.complex.api.weather.gaode

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient
import org.springframework.stereotype.Repository
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @author zooy
 * @since 2024/9/14-10:34
 * @desc 高德天气
 * @link https://lbs.amap.com/api/webservice/guide/api/weatherinfo/
 */
@Repository
@RetrofitClient(baseUrl = "\${weather.gaoDe.url}")
interface GaoDeClient {

    /**
     * 查询未来天气
     */
    @GET("weatherInfo")
    fun queryFutureWeather(@Query("key") key: String?,
                           @Query("city") location: String = "420100",
                           @Query("extensions") extensions: String = "all",
                           @Query("days") days: Int = 3
                           ): GaoDeFutureResponse

}
